package taller2.view.windows;

import taller2.utils.Constants;
import taller2.utils.Point;
import taller2.view.menus.SelectionMenu;

public class SelectionWindow {
	private MyWindow window;
	private SelectionMenu menu;
	
	// constructor
	public SelectionWindow() {
		this.window = new MyWindow("selectionMenu");
		this.menu = new SelectionMenu(window);
	
		this.window.addComponent(menu, 1, 1, new Point(0, 0));
		this.window.changeSize(Constants.tamSelMenuX,Constants.tamSelMenuY);
		this.window.center();
	}
	
	// redraws the window
	public void redraw() {
		window.redraw();
	}
	
    // closes the window
    public void close(){
    	window.setVisible(false);
    }

}
